package com.hcom.feignclient;

import com.hc.entity.Order;
import com.hc.utils.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description：
 * @Author：曹杰克
 * @CreateTime：2022/10/29 12:08
 */
@FeignClient(value = "order")
@RequestMapping("/order")
public interface OrderFeignClient {
    @PostMapping("/selectByOrderCode")
    public ResponseEntity selectByOrderCode(@RequestBody Order order);
    //根据订单编号修改订单状态
    @PostMapping("/changeByOrderCode")
    public ResponseEntity changeByOrderCode(@RequestBody Order order);
}
